package com.listeningframework.boot.autoconfigure.orm.jpa.search.filters;

import java.util.Arrays;

import com.listeningframework.boot.autoconfigure.orm.jpa.search.Operations;

public class LongSearchFilter extends SearchFilter<Long> {

    public LongSearchFilter() {

    }

    public LongSearchFilter(String name, Operations operations, Long... values) {
        setName(name);
        setOperations(operations);
        if (values != null && values.length > 0) {
            getValue().addAll(Arrays.asList(values));
        }
    }

    @Override
    public Class<Long> getType() {
        return Long.class;
    }

}
